﻿using GalaSoft.MvvmLight;
using RestaurantBooker.Web.Data;
using RestaurantBooker.View;
using System;
using GalaSoft.MvvmLight.Command;

namespace RestaurantBooker.ViewModel
{
    /// <summary>
    /// This class contains properties that a View can data bind to.
    /// <para>
    /// Use the <strong>mvvminpc</strong> snippet to add bindable properties to this ViewModel.
    /// </para>
    /// <para>
    /// You can also use Blend to data bind with the tool's support.
    /// </para>
    /// <para>
    /// See http://www.galasoft.ch/mvvm/getstarted
    /// </para>
    /// </summary>
    public class CustomerDetailsViewModel : ViewModelBase
    {
        #region Properties
        /// <summary>
        /// The <see cref="Customer" /> property's name.
        /// </summary>
        public const string CustomerPropertyName = "Customer";

        private Customer _customer = null;

        /// <summary>
        /// Gets the Customer property.
        /// TODO Update documentation:
        /// Changes to that property's value raise the PropertyChanged event. 
        /// This property's value is broadcasted by the Messenger's default instance when it changes.
        /// </summary>
        public Customer Customer
        {
            get
            {
                return _customer;
            }

            set
            {
                if (_customer == value)
                {
                    return;
                }                
                _customer = value;

                // Update bindings, no broadcast
                RaisePropertyChanged(CustomerPropertyName);
            }
        }
        #endregion

        /// <summary>
        /// Initializes a new instance of the OrderDlgViewModel class.
        /// </summary>
        public CustomerDetailsViewModel()
        {
            InitializeCommand();
        }

        #region Commands

      

        private void InitializeCommand()
        {
         


        }
        #endregion

    

    }
}